package com.itheima.day5.test3;

public class SportMan extends Person {
    private String manClass;

    @Override
    public void eat() {
        System.out.println("吃营养餐");
    }

    public SportMan() {
    }

    public SportMan(int id, String name, String sex, int age, String manClass) {
        super(id, name, sex, age);
        this.manClass = manClass;
    }

    public String getManClass() {
        return manClass;
    }

    public void setManClass(String manClass) {
        this.manClass = manClass;
    }

    @Override
    public String toString() {
        return "SportMan{" +
                "manClass='" + manClass + '\'' +
                '}';
    }
}
